# print(1+2+3+4+5)
#
# a = (2,2**8)
# print(a)

# principal=float(input("请输入本金: "))
# rate = float(input("请输入年利率: "))
# year = int(input("请输入年份: "))
# a = (principal*(1+rate/100))**year
# print(f"{a:.2f}")
#
"""
编写程序，声明函数getValue(b, r, n)，根据本金b、年利率r和年数n，计算最终收益v = b*(1 + r)n。
然后编写测试代码，提示输入本金、年利率和年数，显示最终收益（结果保留两位小数）。
运行效果如图所示。要求使用本金5000、年利率5.6和年份5或者本金2000、年利率3.8和年份10进行测试。
"""

# def getValue(b,r,n):
#     return b*(1+r)**n
#
# b = float(input("本金: "))
# r = float(input("年利率: "))
# n = int(input("年数: "))
# ret = getValue(b,r,n)
# print(f"{ret:.2f}")
#
#
# a = int(input())
# b = int(input())
# c = int(input())
# max_v = max(a,b,c)
# min_v = min(a,b,c)
# mid_v = a+b+c-max_v-min_v
# print(f"请输入整数a：请输入整数b：请输入整数c：{min_v} {mid_v} {max_v}")

def average():
    ret = []
    while True:
        tmp = input()
        if tmp.isdigit():
            ret.append(int(tmp))
        else:
            break
    # if len(ret)>0:
    l = len(ret)
    a = sum(ret)
    pr = float(a/l)
    print(pr)

# def some_function():
#     print("This is a function inside the script.")
#
# if __name__ == '__main__':
#     print("This script is being run directly.")
#     some_function()
# else:
#     print("This script is being imported as a module.")